package com.apes.hr.base.repository;


import com.apes.framework.jpa.repository.CustomRepository;
import com.apes.hr.base.model.WorkPostGroup;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;


public interface WorkPostGroupRepository extends CustomRepository<WorkPostGroup, String>{

    @Query("select T from WorkPostGroup T where 1 = 1 and valid = 1  and (id like %:value%  or name like %:value%) ")
    Page<WorkPostGroup> find(@Param("value") String value, Pageable pageable);
}
